#include "mainwindow_label_event_filter.h"

MainWindowLabelEventFilter::MainWindowLabelEventFilter(QObject *parent) : QObject(parent)
{
}

bool MainWindowLabelEventFilter::eventFilter(QObject *watched, QEvent *event)
{
    // 鼠标点击事件
    if (event->type() == QEvent::MouseButtonPress)
    {
        emit labelClicked(watched); // 发送点击信号
    }

    return QObject::eventFilter(watched, event);
}
